<?php

/**
 * Object/SiteHoraireType.php
 * 
 */

namespace RHX\Model\Object;

class SiteHoraireType{
    
    const Normal = 1;
    const Conge = 2;
    const Exceptionnel = 3;

    public $id;
    public $libelle;
    
    /**
     * Constructeur
     * 
     * @param array $data
     */
    public function __construct($data = array()){
	$this->exchangeArray($data);
    }
    
    /**
     * Remplissage
     * 
     * @param array $data
     */
    public function exchangeArray($data){
	$this->id = isset($data['id']) ? (int)$data['id'] : null;
	$this->libelle = isset($data['libelle']) ? $data['libelle'] : '';
    }
}